<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>   
    <base href="<%=basePath%>"/>
    <title>广元电业局低质易耗品管理平台</title>
	<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
   	<link rel="stylesheet" type="text/css" href="css/main.css"/>
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/addStaff.js"></script>
    <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
   
</head>

<body class="ContentBody">
<form action="addStaff.action" method="post" onsubmit="return validateAll();">
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >员工基本信息录入</th>
  </tr>
  <tr>
    <td class="CPanel">
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr>		
		   <td width="100%">
			  <fieldset style="height:100%;">
				<legend>员工信息</legend>			      
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">					 
					  <tr>
					    <td align="right">所属部门:</td>
					      <td>
					        <select name="depid" id="depid" >
                                <option selected="selected" value=''>==请选择==</option>
                               <s:iterator value="departments">
                                <s:if test="depid!=0">
                                 <option value="<s:property value='depid'/>"><s:property value="depname"/></option>
                                </s:if>
                               </s:iterator> 
                            </select>&nbsp;&nbsp;
                            <span style="color: red">*</span>
                         </td>
					   <td align="right">性别:</td>
					     <td>
					        <select name="staff.stasex" style="width:100px">
                                <option selected="selected" value="男">男</option>
                                <option value="女">女</option>
                            </select>&nbsp;&nbsp;
                          <span style="color: red">*</span>
                        </td>
					   
					  </tr>	
					  				 					    
					  <tr>	
					   <td nowrap="nowrap" align="right" width="15%">员工姓名:</td>
					    <td width="35%">
					      <input id="staname" name="staff.staname" type="text" class="text" style="width:154px" />
					    </td>                      			     
					 				             
					   <td align="right">出生日期:</td>
					   <td><input class="text" name="staff.stabirth" id="stabirth" style="width:154px" onfocus="WdatePicker()"/></td>  
					  </tr>
					  		
					  <tr>	
					    <td nowrap="nowrap" align="right" width="15%">负责人:</td>
					    <td width="35%"><input id="" name="staff.fzr" type="checkbox" value="Y"/></td>                      			     
					 				             
					   <td align="right">经办人员:</td>
					   <td width="35%"><input id="" name="staff.jbr" type="checkbox" value="Y"/></td>
					  </tr> 
					  
					   
					  <tr> 
					    <td align="right">职位:</td>
					    <td>
					       <input class="text" name="staff.staposition" style="width:154px" id="position" onBlur="validate('position','sposition')"/>
					        <span style="color:red;display:none;" id="sposition">*不能为空，请重新输入</span>
					    </td>  
					    <td align="right">民族:</td>
					    <td><input class="text" name="staff.stanation" style="width:154px" /></td>
					  </tr>                               
                			  
					  <tr>	
					   <td align="right">身份证号码:</td>
					    <td>
					      <input class="text" name="staff.stacard" style="width:154px" id="card"/>
					    </td>	
					    			    
					    <td align="right">电话号码:</td>
					    <td>
					      <input class="text" name="staff.statel" style="width:154px" id="statel"/>
					    </td>	    				   
					  </tr>
					  		
					  <tr>
					   <td align="right">籍贯:</td>
					    <td><input class="text" name="staff.stanative" style="width:154px"/></td>  
					       
					  	<td align="right">居住地址:</td>
					    <td>
					      <input  name="staff.staaddress"  type="text" size="30" style="width:154px" class="text" id="address" />  
					    </td>
					  </tr>	
					   
					  <tr>
					    <td align="right">描述:</td>
					    <td colspan="3"><textarea name="staff.stanote" cols="100" rows="8" ></textarea></td>
					 </tr>
					 
				</table>
			  <br />
			</fieldset>	
		</td>
	</tr>
</table>	
 </td>
 </tr>			
		<tr>
			<td colspan="2" align="center" height="50px">
			<input type="submit" name="Submit" value="保存" />　
			<input type="button" name="Submit2" value="返回" onclick="window.history.go(-1);"/>
			</td>
		</tr> 
 </table>
</div>
</form>

</body>
</html>

